﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class WaterRecover : MonoBehaviour 
{
	public GameObject cutPanle_bottom;
	public CheReaction cRection;
	
	void OnTriggerEnter(Collider other)
	{
		if (other.name.IndexOf ("waterDrip") != -1) {
			TPPool.Instance.RecoverWater (other.gameObject);
			cutPanle_bottom.GetComponent<TestCutWater> ().RaiseMine ();
			if (other.gameObject.GetComponent<WaterInfo> ().waterType == WaterType.HCL) {
				cRection.AddHclCount ();
			} else if (other.gameObject.GetComponent<WaterInfo> ().waterType == WaterType.NaOh) {
				cRection.AddNaohCount ();
			} else {
				cRection.AddShiRuiCount ();
			}
		}
	}
}
